package com.rightsidetech.trade.mapper;

import com.rightsidetech.trade.dtos.request.TdCommodityTradeOrderReq;
import com.rightsidetech.trade.dtos.response.TdCommodityTradeOrderResp;
import com.rightsidetech.trade.entity.TdCommodityTradeOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TdCommodityTradeOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TdCommodityTradeOrder record);

    int insertSelective(TdCommodityTradeOrder record);

    TdCommodityTradeOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TdCommodityTradeOrder record);

    int updateByPrimaryKey(TdCommodityTradeOrder record);

    TdCommodityTradeOrder selectByOrderNo(@Param("orderNo") String orderNo);

    List<TdCommodityTradeOrderResp> listTradeOrder(TdCommodityTradeOrderReq record);
}